{extend name="template/base" /}
{block name="content"}
<div class="page-container">
    <form class="form form-horizontal" id="form" method="post" action="{:\\think\\Request::instance()->baseUrl()}">
        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-3"><span class="c-red">*</span>通知内容：</label>
            <div class="formControls col-xs-6 col-sm-6">
                <textarea placeholder="通知内容" class="textarea" name="content" datatype="*" nullmsg="内容不能为空"></textarea>
            </div>
            <div class="col-xs-3 col-sm-3"></div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-3"><span class="c-red">*</span>通知部门：</label>
            <div class="formControls col-xs-6 col-sm-6">
                <span>
                     <input type="checkbox" style="margin: 2px" value="1" name="order" checked="checked"/> 售后
                </span>
                <span>
                     <input type="checkbox" style="margin: 2px" value="1" name="dispatch" checked="checked"/> 车调
                </span>
                <span>
                     <input type="checkbox" style="margin: 2px" value="1" name="hotel"/> 房调
                </span>
                <span>
                     <input type="checkbox" style="margin: 2px" value="1" name="finance"/> 财务
                </span>
            </div>
            <div class="col-xs-3 col-sm-3"></div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-3"><span class="c-red">*</span>是否需要处理反馈：</label>
            <div class="formControls col-xs-6 col-sm-6">
                <span>
                     <input type="radio" style="margin: 2px" value="1" name="is_check" checked="checked"/> 是
                </span>
                <span>
                     <input type="radio" style="margin: 2px" value="0" name="is_check"/> 否
                </span>
            </div>
            <div class="col-xs-3 col-sm-3"></div>
        </div>
        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                <button type="submit" class="btn btn-primary radius">&nbsp;&nbsp;提交&nbsp;&nbsp;</button>
                <button type="button" class="btn btn-default radius ml-20" onClick="layer_close();">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
            </div>
        </div>
    </form>
</div>
{/block}
{block name="script"}
<script type="text/javascript" src="__LIB__/Validform/5.3.2/Validform.min.js"></script>
<script>
    $(function () {

        $('.skin-minimal input').iCheck({
            checkboxClass: 'icheckbox-blue',
            radioClass: 'iradio-blue',
            increaseArea: '20%'
        });

        $("#form").Validform({
            tiptype: 2,
            ajaxPost: true,
            showAllError: true,
            callback: function (ret){
                if(ret.code == 0){
                    layer.msg(ret.msg, {
                        icon: 1,
                        time: 2000 //2秒关闭
                    }, function () {
                        window.parent.location.reload(); //刷新父页面
                        var index = parent.layer.getFrameIndex(window.name); //获取窗口索引\
                        parent.layer.close(index)
                    });
                }else{
                    ajax_progress(ret);
                }
            }
        });
    })
</script>
{/block}
